package com.cell.pojo.entity.system;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_point_reward")
public class PointReward implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 图片链接
     */
    private String imgUrl;

    /**
     * 所需积分
     */
    private int pointsRequired;

    /**
     * 库存数量
     */
    private int inventory;

    /**
     * 逻辑删除字段,0表示不删除，1表示删除
     */
    @TableLogic
    private Integer deleted;

    @Version
    private Integer version;

}
